(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/goods/list" ], {
    "042b": function(t, e, n) {
        n.r(e);
        var i, r = n("ea36"), s = n.n(r);
        for (i in r) "default" !== i && function(t) {
            n.d(e, t, function() {
                return r[t];
            });
        }(i);
        e.default = s.a;
    },
    "17a7": function(t, e, n) {
        n.r(e);
        var i, r = n("f746"), s = n("042b");
        for (i in s) "default" !== i && function(t) {
            n.d(e, t, function() {
                return s[t];
            });
        }(i);
        n("e733");
        var a = n("f0c5"), r = Object(a.a)(s.default, r.b, r.c, !1, null, null, null, !1, r.a, void 0);
        e.default = r.exports;
    },
    "63f0": function(t, e, i) {
        (function(t) {
            i("767a"), n(i("66fd"));
            var e = n(i("17a7"));
            function n(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = i, t(e.default);
        }).call(this, i("543d").createPage);
    },
    8880: function(t, e, n) {},
    e733: function(t, e, n) {
        var i = n("8880");
        n.n(i).a;
    },
    ea36: function(t, e, n) {
        (function(r) {
            function s(t, e) {
                var n;
                if ("undefined" == typeof Symbol || null == t[Symbol.iterator]) {
                    if (Array.isArray(t) || (n = function(t, e) {
                        if (t) {
                            if ("string" == typeof t) return o(t, e);
                            var n = Object.prototype.toString.call(t).slice(8, -1);
                            return "Object" === n && t.constructor && (n = t.constructor.name), "Map" === n || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? o(t, e) : void 0;
                        }
                    }(t)) || e && t && "number" == typeof t.length) {
                        n && (t = n);
                        var i = 0, e = function() {};
                        return {
                            s: e,
                            n: function() {
                                return i >= t.length ? {
                                    done: !0
                                } : {
                                    done: !1,
                                    value: t[i++]
                                };
                            },
                            e: function(t) {
                                throw t;
                            },
                            f: e
                        };
                    }
                    throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
                }
                var r, s = !0, a = !1;
                return {
                    s: function() {
                        n = t[Symbol.iterator]();
                    },
                    n: function() {
                        var t = n.next();
                        return s = t.done, t;
                    },
                    e: function(t) {
                        a = !0, r = t;
                    },
                    f: function() {
                        try {
                            s || null == n.return || n.return();
                        } finally {
                            if (a) throw r;
                        }
                    }
                };
            }
            function o(t, e) {
                (null == e || e > t.length) && (e = t.length);
                for (var n = 0, i = new Array(e); n < e; n++) i[n] = t[n];
                return i;
            }
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var t = {
                data: function() {
                    return {
                        goods_list: [],
                        searchKey: "",
                        width: 200,
                        height: 64,
                        inputTop: 0,
                        arrowTop: 0,
                        dropScreenH: 0,
                        attrData: [],
                        attrIndex: -1,
                        dropScreenShow: !1,
                        scrollTop: 0,
                        tabIndex: 0,
                        isList: !1,
                        drawer: !1,
                        drawerH: 0,
                        selectedName: "综合",
                        selectH: 0,
                        dropdownList: [ {
                            name: "综合",
                            selected: !0
                        }, {
                            name: "价格升序",
                            selected: !1
                        }, {
                            name: "价格降序",
                            selected: !1
                        } ],
                        attrArr: [ {
                            name: "新品",
                            selectedName: "新品",
                            isActive: !1,
                            list: []
                        }, {
                            name: "品牌",
                            selectedName: "品牌",
                            isActive: !1,
                            list: [ {
                                name: "trendsetter",
                                selected: !1
                            }, {
                                name: "维肯（Viken）",
                                selected: !1
                            }, {
                                name: "搞怪猪",
                                selected: !1
                            } ]
                        }, {
                            name: "类型",
                            selectedName: "类型",
                            isActive: !1,
                            list: [ {
                                name: "线充套装",
                                selected: !1
                            }, {
                                name: "单条装",
                                selected: !1
                            }, {
                                name: "苹果认证",
                                selected: !1
                            } ]
                        }, {
                            name: "适用手机",
                            selectedName: "适用手机",
                            isActive: !1,
                            list: [ {
                                name: "通用",
                                selected: !1
                            }, {
                                name: "诺基",
                                selected: !1
                            } ]
                        } ],
                        productList: [],
                        pageIndex: 1,
                        loadding: !1,
                        pullUpOn: !0
                    };
                },
                onLoad: function(e) {
                    var n = this, i = wx.getMenuButtonBoundingClientRect();
                    r.getSystemInfo({
                        success: function(t) {
                            n.width = i.left || t.windowWidth, n.height = i.top ? i.top + i.height + 8 : t.statusBarHeight + 44, 
                            n.inputTop = i.top ? i.top + (i.height - 30) / 2 : t.statusBarHeight + 7, n.arrowTop = i.top ? i.top + (i.height - 32) / 2 : t.statusBarHeight + 6, 
                            n.searchKey = e.searchKey || "", n.dropScreenH = 750 * n.height / t.windowWidth + 186, 
                            n.drawerH = t.windowHeight - r.upx2px(100) - n.height;
                        }
                    }), this.init();
                },
                methods: {
                    init: function() {
                        var e = this;
                        this.$api("goods.goods_list").then(function(t) {
                            e.goods_list = t.data.list;
                        });
                    },
                    px: function(t) {
                        return r.upx2px(t) + "px";
                    },
                    btnDropChange: function(t) {
                        var e = this, n = t.currentTarget.dataset.index, t = JSON.parse(JSON.stringify(this.attrArr[n].list));
                        0 === t.length ? (this.btnCloseDrop(), this.$set(this.attrArr[n], "isActive", !this.attrArr[n].isActive)) : (this.attrData = t, 
                        this.attrIndex = n, this.dropScreenShow = !0, this.$set(this.attrArr[n], "isActive", !1), 
                        this.scrollTop = 1, this.$nextTick(function() {
                            e.scrollTop = 0;
                        }));
                    },
                    btnSelected: function(t) {
                        t = t.currentTarget.dataset.index;
                        this.$set(this.attrData[t], "selected", !this.attrData[t].selected);
                    },
                    reset: function() {
                        var t, e = this.attrData, n = s(e);
                        try {
                            for (n.s(); !(t = n.n()).done; ) t.value.selected = !1;
                        } catch (t) {
                            n.e(t);
                        } finally {
                            n.f();
                        }
                        this.attrData = e;
                    },
                    btnCloseDrop: function() {
                        var t = this;
                        this.scrollTop = 1, this.$nextTick(function() {
                            t.scrollTop = 0;
                        }), this.dropScreenShow = !1, this.attrIndex = -1;
                    },
                    btnSure: function() {
                        var t = this.attrIndex, e = !1, n = "", i = s(this.attrData);
                        try {
                            for (i.s(); !(r = i.n()).done; ) {
                                var r = r.value;
                                r.selected && (e = !0, n += n ? ";" + r.name : r.name);
                            }
                        } catch (t) {
                            i.e(t);
                        } finally {
                            i.f();
                        }
                        t = this.attrArr[t];
                        this.btnCloseDrop(), this.$set(t, "isActive", e), this.$set(t, "selectedName", n);
                    },
                    showDropdownList: function() {
                        this.selectH = 246, this.tabIndex = 0;
                    },
                    hideDropdownList: function() {
                        this.selectH = 0;
                    },
                    dropdownItem: function(t) {
                        for (var e = t.currentTarget.dataset.index, n = this.dropdownList, i = 0; i < n.length; i++) n[i].selected = i === e;
                        this.dropdownList = n, this.selectedName = 0 == e ? "综合" : "价格", this.selectH = 0;
                    },
                    screen: function(t) {
                        t = t.currentTarget.dataset.index;
                        this.hideDropdownList(), this.btnCloseDrop(), 0 == t ? this.showDropdownList() : 1 == t ? this.tabIndex = 1 : 2 == t ? this.isList = !this.isList : 3 == t && (this.drawer = !0);
                    },
                    closeDrawer: function() {
                        this.drawer = !1;
                    },
                    back: function() {
                        this.drawer ? this.closeDrawer() : r.navigateBack();
                    },
                    search: function() {
                        r.navigateTo({
                            url: "../../news/search/search"
                        });
                    },
                    detail: function(t) {
                        t = t.currentTarget.dataset.id;
                        this.$Router.push({
                            path: "/pages/goods/detail/index",
                            query: {
                                id: t
                            }
                        });
                    }
                },
                onReachBottom: function() {
                    var t;
                    this.pullUpOn && (this.loadding = !0, 4 == this.pageIndex ? (this.loadding = !1, 
                    this.pullUpOn = !1) : (t = (t = JSON.parse(JSON.stringify(this.productList))).splice(0, 10), 
                    1 == this.pageIndex && (t = t.reverse()), this.productList = this.productList.concat(t), 
                    this.pageIndex = this.pageIndex + 1, this.loadding = !1));
                }
            };
            e.default = t;
        }).call(this, n("543d").default);
    },
    f746: function(t, e, n) {
        n.d(e, "b", function() {
            return i;
        }), n.d(e, "c", function() {
            return r;
        }), n.d(e, "a", function() {});
        var i = function() {
            this.$createElement;
            this._self._c;
        }, r = [];
    }
}, [ [ "63f0", "common/runtime", "common/vendor" ] ] ]);